<div class="search">
    <div>
        <p *ngFor="let item of datas;let key=index" [ngClass]="{'red': key%2==0, 'pink':key%2!==0}">
            {{item}}
        </p>
    </div>
        <div class="text">
            
        </div>
    <hr>
    <h3>搜索区域</h3>
    <div class="sec">
        <input type="text" [(ngModel)]="keyWord" placeholder="请输入搜索内容"> 
        <button (click)="toSearch()">搜索</button>
    </div>
    <hr>    
    <ul>
        <li *ngFor="let item of selectList;let key=index">{{item}} 
            <button class="del" (click)="toDel(key)">X</button> 
        </li>
    </ul>
    {{keyWord}}
</div>
